package deibay.client.commands;

import deibay.client.Command;
import deibay.client.Controller;
import deibay.messages.Message;
import deibay.messages.ReplyReauthenticateClientMsg;
import deibay.messages.RequestLoginMsg;

public class ReauthenticateClientCommand extends Command{

	public ReauthenticateClientCommand(Controller controller, Message msg) {
		super(controller, msg);		
	}

	@Override
	public void execute() {
		ReplyReauthenticateClientMsg msg = new ReplyReauthenticateClientMsg(ReplyReauthenticateClientMsg.class.getSimpleName(), controller.getModel().getLogin().getUser(), controller.getModel().getLogin().getPass());
		controller.getModel().sendMessage(msg);
	}

}
